{% extends 'tend/account/common/base.html' %}
{% import "tend/macros/_patination.html" as page_macros %}
{% block css %}
{{super()}}
<link href="{{ url_for('main.static', filename='css/account.css')}}" rel="stylesheet">
<style>
    .list-group-item {
        background-color: inherit;
    }
</style>
{% endblock %}
{% block contents %}

<div class="container">
    <div class="row justify-content-md-center mt-2">
        <div class="col mb-1">
            <a href="{{url_for('.auth_cards')}}" class="btn btn-sm btn-success">返回</a>
            <span>卡密：{{card.card_no}}</span>
        </div>
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th scope="col">设备识别码</th>
                    <th scope="col">绑定时间</th>
                    <th scope="col">操作</th>
                </tr>
            </thead>
            <tbody>
                {% for d in mcodes %}
                <tr>
                    <th scope="row">{{d.mcode}}</th>
                    <td>{{d.ctime}}</td>
                    <td><a href="{{url_for('.unbind', mcode_id = d.id)}}">解绑</a></td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>


</div>
{% endblock %}
{% block js %}
{{ super() }}
{% endblock %}